import { useIntl } from 'umi'
import { DefaultFooter } from '@ant-design/pro-layout'

const Footer = () => {
  const intl = useIntl()
  const defaultMessage = intl.formatMessage({
    id: 'littleMing',
    defaultMessage: 'powered by umi & antd pro @author xiaoming666'
  })
  const currentYear = new Date().getFullYear()
  return <DefaultFooter copyright={`${currentYear} ${defaultMessage}`} />
}

export default Footer
